Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rewrite onTextChanged to onSelectionChanged event handler in KeyboardAwareScrollView #546

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

kirillzyusko
Copy link
Owner

@kirillzyusko kirillzyusko commented Aug 12, 2024

To Do

  • looks like useAnimatedReaction on iOS doesn't work (FirstInputGrown image has changed); <-- revert assets
  • Android - when scroll back disabled it still scrolls
  • Android - when we type 1 we still have the same image as before - theoretically padding should be reduced.
  • flaky Android scrolling <- fixed in e2e
  • flaky FirstInputGrown <- fixed via clamp
  • Android - TextInput after text change too close to keyboard
  • on long text input removing a line still produces useAnimatedReaction and we scroll based on layout

📜 Description

💡 Motivation and Context

Closes #512

📢 Changelog

JS

iOS

Android

🤔 How Has This Been Tested?

📸 Screenshots (if appropriate):

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko added 🐛 bug Something isn't working KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component labels Aug 12, 2024
@kirillzyusko kirillzyusko self-assigned this Aug 12, 2024
Copy link
Contributor

github-actions bot commented Aug 12, 2024

📊 Package size report

Current size Target Size Difference
166317 bytes 164281 bytes 2036 bytes 📈

@kirillzyusko kirillzyusko force-pushed the fix/keyboard-aware-scroll-view-rewrite-text-changed-to-text-selection branch from cfe7be3 to 8783c80 Compare October 23, 2024 17:37
@kirillzyusko kirillzyusko force-pushed the fix/keyboard-aware-scroll-view-rewrite-text-changed-to-text-selection branch 2 times, most recently from 97d5f90 to 0d2bc42 Compare December 27, 2024 14:51
@kirillzyusko kirillzyusko force-pushed the fix/keyboard-aware-scroll-view-rewrite-text-changed-to-text-selection branch from b9bfc09 to d8d8f34 Compare January 3, 2025 12:56
@kirillzyusko kirillzyusko force-pushed the fix/keyboard-aware-scroll-view-rewrite-text-changed-to-text-selection branch from d8d8f34 to f802462 Compare January 3, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting an entire line in a long text inside an input makes scroll to the top on iOS
1 participant